﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="error.aspx.cs" Inherits="error" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>系统异常信息</title>
    <link href="<%=Page.ResolveUrl("~/") %>css/style.css" rel="stylesheet" type="text/css"/>
    <style type="text/css">
            *
            {
	            font-size:12px;
	            font-family:宋体;
            }
		    
	        div
	        {
	            padding: 10px;
	            background-color: #cccccc;
	            border: #000000 1px solid;
	            text-align:center;
	        }
		</style>
</head>
<body>
	<table width="100%" align="center" cellpadding=0 cellspacing=0 border=0>
        <tr height="25">
           <td style=" background-image: url(<%=Page.ResolveUrl("~/") %>images/lb_14.gif); font-weight:bold">
               &nbsp;&nbsp;<asp:Image ID="Image1" runat="server" ImageUrl="~/images/error.gif" ImageAlign="Bottom"/>
               系统运行发生异常
           </td>  
           <td class="top_buttons_td">
               &nbsp;
           </td>  
        </tr>
    </table>
    <br /><br />
    <table width="90%" align="center" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td>
                <%
                    Exception ex = Server.GetLastError().GetBaseException();
                    Response.Write(ex.Message);
                %>
                <br /><br />
            </td>
        </tr>
        <tr>
            <td>
                <a href="#" onclick="document.getElementById('detailMsg').style.display='block';">查看详细信息</a>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="#" onclick="document.getElementById('detailMsg').style.display='none';">隐藏详细信息</a>
            </td>
        </tr>
        <tr>
            <td>
                <table id="detailMsg" style="display: none">
                    <tr>
                        <td>
                            <% Response.Write(ex.StackTrace); %>
                            <br />
                            
                        </td>
                    </tr>
                </table>
                
            </td>
        </tr>
    </table>
    <% Server.ClearError(); %>    
</body>
</html>
